<template>
  <div>
    <div v-for="item in brief" :key="item.title">
      <action-button :params="item" />
    </div>
  </div>
</template>

<script>
import actionButton from "./components/actionButton";
import { mapState, mapActions } from "vuex";
export default {
  name: "initialView",
  components: { actionButton },
  computed: {
    ...mapState(["brief"]),
  },
  methods: {
    ...mapActions(["loadBrief"]),
  },
  created() {
    this.loadBrief();
    this.$store.commit("SET_TITLE", "SWATMB问卷调查");
  },
};
</script>